package models;

import java.util.*;

import javax.persistence.*;
import play.db.jpa.Model;

@Entity
public class RelationsBetweenDepartment extends Model {
	@OneToOne
	public Department department1;
	@OneToOne
	public Department department2;
	@OneToOne
	public Relation relation;
	/**
	 * @author Daniel Riad
	 * @param department1
	 * @param department2
	 * @param relation
	 * This is simply a constructor that takes two departments and the relation
	 * and creates an object that stores those two departments and the relation between them.
	 */

	public RelationsBetweenDepartment(Department department1,
			Department department2, Relation relation) {
		this.department1 = department1;
		this.department2 = department2;
		this.relation = relation;

	}

}
